﻿#include<iostream>
using namespace std;
int main(unsigned count, char* arc[]) {//参数末尾有个空指针，该空指针不计入参数个数
	cout << "一共有" << count << "个参数" << endl;
	for (int i = 0; i < count; i++)
		cout << "参数[" << i << "]=[" << arc[i] << "]" << endl;

	for (int i = 0; arc[i]; i++)
		cout << "地址：" << (int)arc[i] << "参数[" << i << "]=[" << arc[i] << "]" << endl;

}